module sim12_imem( input  [7:0] a,
            output [11:0] rd);

  reg  [11:0] RAM[255:0];


initial
    begin
      $readmemh("test.dat",RAM); //Load the initial instructions to Instruction cache
    end

assign rd = RAM[a]; // word aligned

endmodule


